<!DOCTYPE html>
<html>

<head>
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>物品信息修改</title>
    <meta charset="UTF-8" />
</head>
{% if messages %}
{% for msg in messages %}
<script>
    alert('{{ msg.message }}');
</script>
{% endfor %}
{% endif %}

<body>
    <form action="" method="post">
        {% csrf_token %}
        <fieldset style="padding: 2">
            <legend>物品信息修改</legend>
            <p>{{ obj.name.label }} {{ obj.name }}</p>
            <p>{{ obj.place.label }} {{ obj.place }}</p>
            <p>{{ obj.type.label }} {{ obj.type }}</p>
            <p>{{ obj.count.label }} {{ obj.count }} {{ obj.unit }}</p>
            <p>过期时间 {{ obj.valid }} 如20220302</p>
            <p>{{ obj.note.label }} {{ obj.note }} 如：数量小于5个告警、有效期小于1个月告警……</p>
            <p><input type="submit" value="提交" name="B1" style="float: left">
                <input type="button" value="返回" name="B2" style="float: right" onclick="history.back()">
            </p>
        </fieldset>
    </form>
</body>

</html>